"""
import math
math.fabs()
math.sqrt()
"""
import math

# print(type(math.fabs(6)))
# print(type(math.sqrt(6)))
# n1=int(input())
# n2=int(input())
# for i in range(n2):
#     print(n1-i*2)
# a=int(input())
# b=int(input())
# for i in range(a,b+1):
#     if i%2!=0 and i%3!=0 and i%5!=0:
#         print(i,end=' ')
# print(5%5)
# def product(n):
#     n2=1
#     for i in range(1,n+1):
#         n2*=i
#     return n2
# n2=int(input())
# n3=0
# for i in range(1,n2+1):
#     n3+=product(i)
# print(product(3))
l = []
while True:
    l.append(input())
    if l[-1] == 'q' or l[-1] == 'Q':
        l.pop()
        break
    elif int(l[-1]) < 0:
        l.pop()
print(len(l))
for i in range(len(l)):
    l[i] = float(l[i])
print(l)
n = 0
for i in l:
    n += i
print('%0.2f' % (n / len(l)))
# print(3000/2,'  ',1500)
# print('2,2,2,,2,2,2,2'.split(','))
# l = input().split(',')
# p=True
# n=0
# for i in l:
#     for j in range(2,int(i)):
#         if int(i)%j==0:
#             p=False
#             break
#         else:
#             p=True
#     if p:
#         n+=int(i)
# print(n)
